#ifndef _PROXY_H_
#define _PROXY_H_

#include <string>
using namespace std;

class AbstractCommonInterface
{
public:
    virtual void run() = 0;
};

// 操作系统类
class MySystem : public AbstractCommonInterface
{
public:
    virtual void run();
};

// 代理
class MySystemProxy : public AbstractCommonInterface
{
public:
    MySystemProxy(string userName, string password);
    ~MySystemProxy();
    bool checkUserNameAndPassword();
    virtual void run();
private:
    string _userName;
    string _password;
    MySystem* _pMySystem;
};

#endif // _PROXY_H_